import request from '../axios/index';
/*
 * /api/api/manage/Information
 * 描述：获取平台信息
 */
export function information(major) {
    return request({
        method: 'post',
        url: '/api/manage/information/'+ major,
    });
}
/*
 * /api/api/manage/getMajorPassScoreVo
 * 描述：获取专业考试人数
 */
export function getMajorPassScoreVo(major) {
    return request({
        method: 'post',
        url: '/api/manage/getMajorPassScoreVo/'+ major
    });
}

/*
 * /api/api/manage/byScoreSort
 * 描述：获取分数人员占比
 */
export function byScoreSort() {
    return request({
        method: 'post',
        url: '/api/api/manage/byScoreSort'
    });
}

// export function getMajorPassScoreVo() {
//     return request({
//         method: 'post',
//         url: '/api/manage/getMajorPassScoreVo'
//     });
// }
//获取各分数人员
export function getScoreSort(major) {
    return request({
        method: 'post',
        url: '/api/manage/byScoreSort/'+major
    });
}

//获取考试人员信息
export function getExaminerInformation(data) {
    return request({
        method: 'post',
        url: '/api/manage/getAllUser',
        data
    });
}

//导出考试人员信息接口
export function exportExaminerInfo(data) {
    return request({
        method: 'post',
        url: '/api/manage/user/export',
        data,
        responseType: 'blob'
    });
}



//获取错题
export function GetWroQuesData(data) {
    return request({
        method: 'post',
        url: '/api/manage/getWrongQuestionAndSort',
        data
    });
}

export function InspectorSaveAll(data) {
    return request({
        method: 'post',
        url: '/questionBank/upload',
        data,
        processData:false,
        headers:{    
            "Content-Type": "multipart/form-data; boundary=something"
        }
    });
}

